{template 'common/header'}

<ul class="nav nav-tabs">
    <li role="presentation" class="active">
        <a href="{php echo $this->createWebUrl('activity_operation');}">活动内容</a>
    </li>
    <li role="presentation">
        <a href="{php echo $this->createWebUrl('activity_particulars')}">活动详情</a>
    </li>
</ul>

<form class="we7-form" method="post" action="{php echo $this->createWebUrl('post_activity')}">
    <input type="hidden" name="id" value="{$activity['id']}" />
    <div class="form-group">
        <label class="control-label col-sm-2">活动标题</label>
        <div class="form-controls col-sm-8">
            <input class="form-control" type="text" name="title">
            <div class="help-block">活动的标题，展示在首页</div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-sm-2"><span style="color:red">*</span>封面图片</label>
        <div class="form-controls col-sm-8">
            {php echo tpl_form_field_image('img');}
            <div class="help-block">活动详情图</div>
        </div>
    </div>
    <!--活动时间-->
    <div class="form-group">
        <label class="control-label col-sm-2">活动时间</label>
        <div class="form-controls col-sm-8">
            <!--日期范围选择器-->
            {php echo tpl_form_field_daterange('time',[],true);}
            <div class="help-block"></div>
        </div>
    </div>

    <!--活动报名时间-->
    <div class="form-group">
        <label class="control-label col-sm-2">报名时间</label>
        <div class="form-controls col-sm-8">
            {php echo tpl_form_field_daterange('apply_time',[],true);}
            <div class="help-block">活动报名时间必须在活动时间内</div>
        </div>
    </div>

    <!--活动报名时间-->
    <div class="form-group">
        <label class="control-label col-sm-2">活动状态</label>
        <div class="control-label col-sm-8">
            <label>
                <input type="radio" checked value="0" name="state">正常
            </label>
            &nbsp;
            <label>
                <input type="radio" value="1" name="state">禁用
            </label>
        </div>
    </div>
    <hr>
    <button class="btn btn-success" type="submit">提交</button>
</form>

{template 'common/footer'}
<style>
    .we7-form input[type="radio"]{
        display: inline;
    }
</style>

<script>

</script>